import { testDb, query } from '../db/db'

const getAllUsers = (value) => {
  const sql = 'select * from user'
  return query(testDb, sql, value)
}
const getUserById = (value) => {
  const sql = 'select * from user where id = ?'
  return query(testDb, sql, value)
}

export {
  getAllUsers,
  getUserById
}
